package cn.iocoder.yudao.module.xhyy.controller.admin.exam.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 试卷资源新增/修改 Request VO")
@Data
public class ExamSaveReqVO {

    @Schema(description = "唯一标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "26229")
    private String id;

    @Schema(description = "试卷名称", example = "李四")
    private String examName;

    @Schema(description = "章节")
    private String chapter;

    @Schema(description = "年级")
    private Integer grade;

    @Schema(description = "书籍id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "书籍Id不能控")
    private Integer bookId;
    @Schema(description = "书籍名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "书籍名称不能为空")
    private String bookName;

    @Schema(description = "资源地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotEmpty(message = "资源地址不能为空")
    private String examUrl;

    @Schema(description = "排序")
    private Integer sort;

}